package com.hejing.static关键字;

/**
 * ClassName: ChineseTest
 * Package: com.hejing.static关键字
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-27 19:12
 * @Version: 1.0
 */
public class ChineseTest {
    public static void main(String[] args) {
        Chinese c1 = new Chinese();
        c1.name = "小明";
        c1.age = 23;;
        c1.nation = "中国";

        System.out.println(c1);

        Chinese c2 = new Chinese();
        c2.name = "小张";
        c2.age = 44;
        System.out.println(c2);
        System.out.println(c2.nation);

        // 静态方法调用
        Chinese.show();
    }
}





















